<%@ page import="duylinh.SanPham" %>



<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'code', 'error')} ">
	<label for="code">
		<g:message code="sanPham.code.label" default="Code" />
		
	</label>
	<g:textField name="code" maxlength="20" value="${sanPhamInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'vatLieu', 'error')} ">
	<label for="vatLieu">
		<g:message code="sanPham.vatLieu.label" default="Vat Lieu" />
		
	</label>
	<g:select id="vatLieu" name="vatLieu.id" from="${duylinh.VatLieu.list()}" optionKey="id" value="${sanPhamInstance?.vatLieu?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'congNghe', 'error')} ">
	<label for="congNghe">
		<g:message code="sanPham.congNghe.label" default="Cong Nghe" />
		
	</label>
	<g:select id="congNghe" name="congNghe.id" from="${duylinh.CongNghe.list()}" optionKey="id" value="${sanPhamInstance?.congNghe?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'khachHangChinh', 'error')} ">
	<label for="khachHangChinh">
		<g:message code="sanPham.khachHangChinh.label" default="Khach Hang Chinh" />
		
	</label>

	<g:select id="khachHangChinh"
              name="khachHangChinh.id"
              from="${duylinh.KhachHang.list()}"
              optionKey="id"
              value="${sanPhamInstance?.khachHangChinh?.id}"
              class="many-to-one"
              noSelection="['null': '']" />
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'dodayMax', 'error')} required">
	<label for="dodayMax">
		<g:message code="sanPham.dodayMax.label" default="Doday Max" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="dodayMax" value="${fieldValue(bean: sanPhamInstance, field: 'dodayMax')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'dodayMin', 'error')} required">
	<label for="dodayMin">
		<g:message code="sanPham.dodayMin.label" default="Doday Min" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="dodayMin" value="${fieldValue(bean: sanPhamInstance, field: 'dodayMin')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'ghiChu', 'error')} ">
	<label for="ghiChu">
		<g:message code="sanPham.ghiChu.label" default="Ghi Chu" />
		
	</label>
	<g:textField name="ghiChu" value="${sanPhamInstance?.ghiChu}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'hangMuc', 'error')} ">
	<label for="hangMuc">
		<g:message code="sanPham.hangMuc.label" default="Hang Muc" />
		
	</label>
	<g:textField name="hangMuc" value="${sanPhamInstance?.hangMuc}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sanPhamInstance, field: 'loai', 'error')} ">
	<label for="loai">
		<g:message code="sanPham.loai.label" default="Loai" />
		
	</label>
	<g:textField name="loai" value="${sanPhamInstance?.loai}"/>
</div>

